package com.topvision.service.impl;

import com.topvision.domain.ImgRecGroup;
import com.topvision.repository.ImgRecGroupRepository;
import com.topvision.service.ImgRecGroupService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ImgRecGroupServiceImpl implements ImgRecGroupService{

    @Autowired
    private ImgRecGroupRepository imgRecGroupRepository;


    @Override
    public void save(ImgRecGroup imgRecGroup) {
        imgRecGroupRepository.save(imgRecGroup);
    }

    @Override
    public List<ImgRecGroup> findByCreatedBy(String name) {
        return imgRecGroupRepository.findByCreatedBy(name);
    }
}
